﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Replace.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.DataBase.Replace" %>

<%@ Register src="../UC_AjaxLoading.ascx" tagname="UC_AjaxLoading" tagprefix="uc1" %>

<!doctype html>
<html>
<head runat="server">
    <title>数据库字段替换</title>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td width="50%">
                        数据库管理 → 数据库字段替换
                    </td>
                    <td width="50%" align="right">
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table width="98%" border="0">
                <tr>
                    <td class="RowTitle" style="width: 200px">
                        系统模型：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlModel" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlModel_SelectedIndexChanged">
                        </asp:DropDownList>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        操纵栏目：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCategory" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        操纵字段：
                    </td>
                    <td>
                        <asp:ListBox ID="lblField" runat="server" Rows="10" SelectionMode="Multiple"></asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        替换内容：
                    </td>
                    <td>
                        <table width="98%" border="0">
                            <tr>
                                <td width="14%" align="center" bgcolor="#DDEDFB">
                                    原字符
                                </td>
                                <td width="86%">
                                    <asp:TextBox ID="txtOldString" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="400px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" bgcolor="#DDEDFB">
                                    新字符
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNewString" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="400px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;<asp:RadioButtonList ID="RBL_ReplaceType" runat="server" Visible="False">
                            <asp:ListItem Selected="True" Value="0">模糊匹配</asp:ListItem>
                            <asp:ListItem Value="1">全字匹配替换(字段内容＝原字符 是才被替换)</asp:ListItem>
                            <asp:ListItem Value="2">正则表达式替换</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnOK" runat="server" Cssclass="btn btn-default" OnClick="btnOK_Click" Text="提交" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
